
/* 排序 */
export function format (index, Page) {
  index = index + 1
  let indexSy
  if (Page > 1) {
    let sy = (Page - 1) * 10
    indexSy = sy + index
  } else {
    indexSy = index
  }
  return indexSy
}

/* 深度复制对象 */
export function copy (obj) {
  let newobj = {}
  for (let attr in obj) {
    newobj[attr] = obj[attr]
  }
  return newobj
}

/* 深度复制数组 */
export function copyArr (obj) {
  let nd = JSON.parse(JSON.stringify(obj))
  return nd
}
